package com.bonc.ioc.demo.event;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author tangbiao
 */
@Component
@Slf4j
public class HybridListener implements ApplicationListener<HybridEvent> {
    private Logger logger = LoggerFactory.getLogger(HybridListener.class);

    @Override
    public void onApplicationEvent(HybridEvent hybridEvent) {
        logger.info("spring 事件样例 {}" , hybridEvent.getUserId());
    }
}
